import { createPinia } from "pinia";
import { useUserStore } from "@/stores/modules/user";
import type { App } from "vue";

const pinia = createPinia();

export default function (app: App<Element>) {
  app.use(pinia);
  const userStore = useUserStore();
  userStore.refreshMenu();
};
